import { api1 } from '@/jiessConfig/http';
// 列表管理
export const tableBaseApi = api1.create({
	list: ['POST', '/table-base/list'],
	add: ['POST', '/table-base'],
	delete: ['DELETE', '/table-base'],
	edit: ['PUT', '/table-base'],
	detail: ['GET', '/table-base'],
});


export const studentApi = api1.create({
	list: ['POST', '/table-tabs/student/list'],
	add: ['POST', '/table-tabs/student'],
	delete: ['DELETE', '/table-tabs/student'],
	edit: ['PUT', '/table-tabs/student'],
	detail: ['GET', '/table-tabs/student'],
});

export const teacherApi = api1.create({
	list: ['POST', '/table-tabs/teacher/list'],
	add: ['POST', '/table-tabs/teacher'],
	delete: ['DELETE', '/table-tabs/teacher'],
	edit: ['PUT', '/table-tabs/teacher'],
	detail: ['GET', '/table-tabs/teacher'],
});

// 列表管理
export const userInfoApi = api1.create({
	login: ['POST', '/login'],
	captcha: ['GET', '/captcha'],
});